int putc ( int character, FILE * stream );
Writes a character to the stream and advances the position indicator.
The character is written at the position indicated by the internal position indicator of the stream, which is then automatically advanced by one.
putc and
fputc are equivalent, except that putc may be implemented as a macro in some libraries.
See
putchar for a similar function that writes directly to stdout.
On success, the character written is returned.
If a writing error occurs, EOF is returned and the error indicator (ferror) is set.